<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
 <xsl:template match="/">
 
 <root>
  <param1>
    <Attribute_Category_ID>1</Attribute_Category_ID>
  <xsl:for-each select="root/param1">
   <xsl:if test="Attribute_Category_ID=1">
      <AttrCatId>
     <AttributeID>
      <xsl:value-of select="AttrCatId/AttributeID"/>
     </AttributeID>
     <Attribute_Category_Value>
      <xsl:value-of select="AttrCatId/Attribute_Category_Value"/>
     </Attribute_Category_Value>
    </AttrCatId>
    </xsl:if>
    </xsl:for-each>
    
    <Attribute_Category_ID>2</Attribute_Category_ID>
  <xsl:for-each select="root/param1">
   <xsl:if test="Attribute_Category_ID=1">
      <AttrCatId>
     <AttributeID>
      <xsl:value-of select="AttrCatId/AttributeID"/>
     </AttributeID>
     <Attribute_Category_Value>
      <xsl:value-of select="AttrCatId/Attribute_Category_Value"/>
     </Attribute_Category_Value>
    </AttrCatId>
    </xsl:if>
    </xsl:for-each>
    </param1>
     </root>
 </xsl:template>
</xsl:stylesheet>